const app = getApp();
import Api from '@/services/api.js'
export default {
  data() {
    return {
    }
  },
  computed: {
    privacyData() {
      return this.$store.state.privacyData;
    },
  },
  onLoad() {
  },
  methods: {
    handleLoginOut() {
      uni.showModal({
        title: '提示',
        content: '是否退出登录?',
        success: res => {
          if (res.confirm) {
            this.$store.commit('clearStateByKey', {
              privacyData: {}
            })
            uni.removeStorageSync('privacyData');
            uni.reLaunch({ url: '/pages/home/index' });
          }
        }
      })
    }
  },
}